package com.sise.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sise.entity.UserSearchRecord;
import com.sise.mapper.UserSearchRecordMapper;
import com.sise.service.IUserSearchRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author zj
 */
@Service
public class UserSearchRecordServiceImpl extends ServiceImpl<UserSearchRecordMapper, UserSearchRecord> implements IUserSearchRecordService {

    @Resource
    private UserSearchRecordMapper userSearchRecordMapper;

    @Override
    public boolean save(UserSearchRecord userSearchRecord) {
        int tag = userSearchRecordMapper.insert(userSearchRecord);
        return tag == 1;
    }
}
